-- GENERATED SPELL FOR [Naberius] --


function spell0_20483(pUnit, Event) --@Chains of Naberius,Self--
pUnit:FullCastSpellOnTarget(36146,pUnit)
pUnit:RegisterEvent('Sorts_20483', 625, 1)
end

function spell1_20483(pUnit, Event) --@Chill Nova,Self--
pUnit:FullCastSpellOnTarget(36148,pUnit)
pUnit:RegisterEvent('Sorts_20483', 10265, 1)
end

function spell2_20483(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15497,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20483', 7000, 1)
end

function Sorts_20483(pUnit, Event)
local choix_sorts_20483 = math.random(0, 2)
if choix_sorts_20483 == 0 then
pUnit:RegisterEvent('spell0_20483', 1, 1)
end
if choix_sorts_20483 == 1 then
pUnit:RegisterEvent('spell1_20483', 1, 1)
end
if choix_sorts_20483 == 2 then
pUnit:RegisterEvent('spell2_20483', 1, 1)
end
end

function mob20483_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20483', math.random(1500, 3000), 1)
end

function mob20483_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20483_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20483_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20483, 1, 'mob20483_Action')
RegisterUnitEvent(20483, 2, 'mob20483_Leave')
RegisterUnitEvent(20483, 3, 'mob20483_Kill')
RegisterUnitEvent(20483, 4, 'mob20483_Die')
